<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>{$web}-{$title}</title>
    <meta name="keywords" content="{$keywords}">
    <meta name="description" content="{$desc}">
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css"/>
    <script src="__PUBLIC__/Admin/js/jquery-3.3.1.min.js"></script>
    <script src="__PUBLIC__/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.config.js">/*引入配置文件*/</script>
    <script src="__PUBLIC__/ueditor1_4_3_3-utf8-php/utf8-php/ueditor.all.js">/*引入源码文件*/</script>
</head>
<body>
<include file="Base/head" />
<div class="container clearfix">
    <include file="Base/left" />
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="{:U('Index/index')}">首页</a>
                <span class="crumb-step">&gt;</span>
                <a class="crumb-name" href="{:U('Article/index')}">文章管理</a>
                <span class="crumb-step">&gt;</span><span>新增作品</span>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="{:U('Article/plus')}" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <tr>
                            <th width="120"><i class="require-red">*</i>文章分类：</th>
                            <td>
                                <select name="cateid" id="cateid" class="required">
                                    <option value="">请选择</option>
                                    <volist name="cate" id="vo">
                                        <option value="{$vo.id}">{$vo.title}</option>
                                    </volist>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>文章标题：</th>
                            <td>
                                <input class="common-text required" id="title" name="title" size="50" value="{$info['title']}" type="text">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>文章类型：</th>
                            <td>
                                <input type="radio" name="orderid" onclick="ch('n')" value="0" checked >内容添加
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <input type="radio" name="orderid" onclick="ch('y')" value="1">网址添加
                            </td>
                        </tr>
                        <tr>
                            <th>文章作者：</th>
                            <td><input class="common-text" name="author" size="50" value="" type="text"></td>
                        </tr>
                        <tr id="1" style="display: none;">
                            <th>网址域名：</th>
                            <td><input class="common-text" name="url" size="50" value="" type="text"></td>
                        </tr>
                        <tr id="2">
                            <th>文章来源：</th>
                            <td><input class="common-text" name="desc" size="50" value="" type="text"></td>
                        </tr>
                        <tr id="3">
                            <th>文章内容：</th>
                            <td>
                                <textarea name="content" class="common-textarea" id="content" cols="30" style="width: 80%;" rows="10"></textarea>
                                <script type="text/javascript">
                                    UE.getEditor("content");//实例化编辑器  传参,id为将要被替换的容器。
                                </script>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <!--/main-->
</div>
<script>
    function ch(tag){
        var a=document.getElementById("1");
        var b=document.getElementById("2");
        var c=document.getElementById("3");
        if(tag=='y'){
            a.style.display = '';
            b.style.display = 'none';
            c.style.display = 'none';
        }
        else{
            a.style.display = 'none';
            b.style.display = '';
            c.style.display = '';
        }
    }
</script>

</body>
</html>